package com.itheima.reggie.common;

import com.itheima.reggie.domain.User;

public class UserHolder {
    private static final ThreadLocal<User> tla=new ThreadLocal<>();

    public static void set(User user){
        tla.set(user);
    }

    public static User get(){
        return tla.get();
    }

    public static void remove(){
        tla.remove();
    }
}
